#ifndef MANDELBROT_H
#define MANDELBROT_H

#include "stdincl.h"

class Mandelbrot
{
    public:
        Mandelbrot();
        void Allocate();
        void Deallocate();
        void Iterate(); //escape time algorithm
        const uint8_t* GetPixelArray();

    private:
        const int GetColumn(int);
        const int GetRow(int);

        const int SpriteWidth;
        const int SpriteHeight;

        uint8_t* pixelArray_;   //holds the rgba values of each pixel
        int* iterations_;    //keeps track of the iteration count of each pixel

        int depth_;

        struct RGB
        {
            uint8_t red;
            uint8_t green;
            uint8_t blue;
        };
};

#endif // MANDELBROT_H
